package com.huazai.lock;

import java.util.concurrent.Callable;
import java.util.concurrent.Future;
import java.util.concurrent.FutureTask;
import java.util.concurrent.RunnableFuture;

/**
 * @author huazai
 * @date 2024/2/4
 */
public class ThreadDemo5 {

    public static void main(String[] args) {
        Runnable runnable;
        Callable callable;
        Thread thread = new Thread(() -> {

        });
        Future future;
        RunnableFuture runnableFuture;
        FutureTask futureTask = new FutureTask(() -> {
            return 1024;
        });
        new Thread(futureTask).start();
    }
}
